﻿@model IEnumerable<TCM.Room>

@{
    ViewBag.Title = "Rooms List";
}


<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>
<br />

<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
<table class="grdTable" style="width: 100%;" cellspacing="0">
    <thead>
        <tr class="GridHeader">
        @*<th>
            @Html.DisplayNameFor(model => model.RoomID)
        </th>*@
        
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Code)
        </th>
        
      @*  <th>
            @Html.DisplayNameFor(model => model.NameAr)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Capacity)
        </th>
       
        <th></th>
   </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
       <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Code)
        </td>   
        @*<td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Capacity)
        </td>            
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.RoomID }) |
           @* @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |*@
            @Html.ActionLink("Delete", "Delete", new { id=item.RoomID })
        </td>
    </tr>
}
    </tbody>

</table>
